package com.earl.handler;

import com.earl.enums.OrderStatusEnum;
import com.earl.util.ResultMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 知鹏 on 2018/6/24.
 */
@RestController
@Slf4j
public class TestCode {


    @RequestMapping("/testcode")
    public ResponseEntity<ResultMessage> testCode(){
        System.out.println("测试中文");
        ResultMessage result = new ResultMessage();
        result.setResultInfo("添加成功");
        log.info("ces");
        return new ResponseEntity<ResultMessage>(result, HttpStatus.OK);
}


}
